package com.leyou.upload.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@ConfigurationProperties("ly.oss")  //读取yml文件中的ly.oss开头的属性
@Component  //装配进spring的IOC容器中
@Data
public class OSSProperties {
    private String accessKeyId;
    private String accessKeySecret;
    private String endpoint;
    private String bucket;
    private String host;
    private String dir;
    private Long expireTime;
    private Long maxFileSize;

}
